<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>Document</title>
    <link rel="stylesheet" href="../css/api.css">
    <style>
        #js-img {
            position: fixed;
            width: 100vw;
            height: 100vh;
        }
    </style>
</head>

<body>
    <img id="js-img" src="../image/index/1.png" alt="" onclick="submit()">
</body>
<script src="../script/api.js"></script>
<script src="../script/jquery.js"></script>
<script src="../script/ffkj.js"></script>
<script>
    var index;
    apiready = function () {
        index = api.pageParam['index'];
        $('#js-img').attr('src', '../image/index/'+(parseInt(index)+1)+'.png');
    }

    function submit() {
        if (index == 2) {
            if ($api.getStorage('userid')) {
                // 上架判断
                // _ajax('api/index/shangjia', function (ret, err) {
                // 	if (ret && ret[0]) {
                // 		$api.setStorage('shang', ret[0].pshang);
                // 		if (ret[0].pshang == 1) { // 上架
                // 			_url({ slidBackEnabled: 0 }, 'shejiao');
                // 		} else { // 非上架
                // 			_url({ slidBackEnabled: 0 }, 'homeSlid');
                // 		}
                // 	} else {
                    _home()
                // 	}
                // })
            } else {
                _url({ slidBackEnabled: 0 }, 'user/login_win');
            }
        }
    }
</script>

</html>